<template>
  <div class="home">
    <div class="container">
      <div class="header">
        <h1 class="title">AI 智能体中心</h1>
        <p class="subtitle">选择您要使用的AI应用</p>
      </div>
      
      <div class="app-cards">
        <div class="app-card" @click="goToLoveApp">
          <div class="app-icon">💕</div>
          <h3 class="app-title">AI 恋爱大师</h3>
          <p class="app-description">专业的恋爱咨询和情感建议，帮助您处理感情问题</p>
          <div class="app-features">
            <span class="feature-tag">情感咨询</span>
            <span class="feature-tag">恋爱指导</span>
            <span class="feature-tag">关系维护</span>
          </div>
        </div>
        
        <div class="app-card" @click="goToManusApp">
          <div class="app-icon">🤖</div>
          <h3 class="app-title">AI 超级智能体</h3>
          <p class="app-description">强大的AI助手，可以帮助您解决各种问题和完成任务</p>
          <div class="app-features">
            <span class="feature-tag">智能问答</span>
            <span class="feature-tag">任务助手</span>
            <span class="feature-tag">知识搜索</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Home',
  methods: {
    goToLoveApp() {
      this.$router.push('/love-app')
    },
    goToManusApp() {
      this.$router.push('/manus-app')
    }
  }
}
</script>

<style scoped>
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  max-width: 800px;
  width: 100%;
}

.header {
  text-align: center;
  margin-bottom: 50px;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.app-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.app-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
}

.app-description {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1rem;
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.feature-tag {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }
  
  .app-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .app-card {
    padding: 24px;
  }
}
</style>